package com.base.cn.platform.os.entity.course.cou.packageCou;

import com.base.cn.platform.os.common.mybatis.BaseEntity;
import com.base.cn.platform.os.entity.course.cou.Course;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 套餐与课程的关联实体
 *
 * @author s.li
 * @create 2018-05-02-14:48
 */
@Data
public class PackageCourse extends BaseEntity {
    /**类型，1课程，2阶段内容*/
    private Integer packageType;
    /**阶段内容，packageType=2时有用*/
    private String stageContext;
    /**套餐ID*/
    private BigDecimal packageId;
    /**套餐关联课程R的ID*/
    private BigDecimal courseId;
    /**课程类型key*/
    private String courseTypeKey;
    /**是否为必选课程，1.必选 2.非必选*/
    private Integer required;
    /**套餐内课程价格。与课程实际价格无关*/
    private Double price;
    /**父级ID*/
    private BigDecimal parentId;
    /**排序*/
    private Integer sort;

    //-----------------------
    //套餐关联的课程
    private Course course;
    private List<PackageCourse> childList;
    //套餐ID串
    private String packageIds;
    //课程ID串
    private String courseIds;
}
